<template>
  <div>
    <el-button
      v-for="(item, index) in buttonMes"
      :key="index"
      @click="buttonFun(item)"
      style="margin-left:0px"
      :type="item.type?item.type:'info'"
      :size="item.size?item.size:''"
    >
      <i :class="item.icon"></i>{{item.words}}
    </el-button>
  </div>
</template>

<script>
export default {
  props: ['buttonMes'],
  data() {
    return {
    }
  },
  methods: {
    buttonFun(item) {
      if (!item.fun) {
        return
      }
      this.$emit('button-fun', item)
    }
  }
}
</script>
<style lang='less' scoped>
.el-header,
.el-footer {
  background-color: #373d41;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 5px;
  > div {
    width: 20%;
  }
}
</style>
